import request from '@/utils/request'

export function listCashes(query) {
  return request({
    url: '/cashes/list',
    method: 'get',
    params: query
  })
}

export function createCashes(data) {
  return request({
    url: '/cashes/create',
    method: 'post',
    data
  })
}

export function updateCashes(data) {
  return request({
    url: '/cashes/update',
    method: 'post',
    data
  })
}

export function deleteCashes(data) {
  return request({
    url: '/cashes/delete',
    method: 'post',
    data
  })
}

export function approvallist(query) {
  return request({
    url: '/cashes/approvallist',
    method: 'get',
    params: query
  })
}

export function approval(data) {
  return request({
    url: '/cashes/approval',
    method: 'post',
    data
  })
}
